package com.woniuxy.cloud.ticket52;

import com.woniuxy.cloud.ticket52.common.result.Result;
import com.woniuxy.cloud.ticket52.form.MovieAddForm;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(value="movie52",contextId = "movie")
public interface MovieAPI {

    @PostMapping("movie")
    public Result addMovie(@RequestBody MovieAddForm form);

    @GetMapping("getMovie")
    public Result getMovie(@RequestParam("id") int id);
}
